from django.urls import path
from .views import menulist_view, UserViewSet, PermViewSet, RoleViewSet
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('mgr', UserViewSet)  # /user/mgr/   /user/mgr/100
router.register('perms', PermViewSet)  # /user/perm/   /user/perm/100
router.register('roles', RoleViewSet)
urlpatterns = [
    path('menulist/', menulist_view),  # /users/menulist/
] + router.urls
print('~' * 30)
print(urlpatterns)
print('~' * 30)

